<?php
/*
 * Created on 22.12.2005
 *
 */

// TODO add target attribute, if validate name is required
class ajax_responseHandler
{
    
    var $name = null;

    function startElement (& $sender, $attrs)
    {
        $sender->appendCode('$out->write("function () \n{");');
        $sender->appendCode('$out->write("___jsheadercode___");');
    }

    function endElement (& $sender)
    {
        $sender->appendCode('$out->write("}\n");'."\n");
    }

}

?>